<div class="admin">
    <div class="tab panel dux-box admin-panel">
        <div class="panel-head"><strong>账号同步</strong></div>
        <div class="padding">
            <a href="{:U('qq')}" class="button button-small border-green">QQ互联</a>
            <a href="{:U('sina')}" class="button button-small border-green">新浪</a>
            <a class="button button-small bg-green">微信</a>
        </div>
        <div class="fixed-empty"></div>
        <form method="post" id="myform" name="myform" action="{:U('saveConfig')}">
            <table class="table tb-type2">
                <tbody>
                    <tr>
                        <td width="10%" class="required"><label>是否启用微信互联功能:</label></td>
                        <td width="30%" class="vatop rowform onoff">
                <if condition="$config['wx_isuse'] eq 1">
                    <div class="form-group">
                        <div class="field">
                            <div class="button-group radio">
                                <label class="button active">
                                    <input name="wx_isuse" value="1" checked="checked" type="radio"><span class="icon icon-check"></span> 开启
                                </label>
                                <label class="button">
                                    <input name="wx_isuse" value="0" type="radio"><span class="icon icon-times"></span> 关闭
                                </label>
                            </div>
                        </div>
                    </div>
                    <else />
                    <div class="form-group">
                        <div class="field">
                            <div class="button-group radio">
                                <label class="button">
                                    <input name="wx_isuse" value="1" type="radio"><span class="icon icon-check"></span> 开启
                                </label>
                                <label class="button active">
                                    <input name="wx_isuse" value="0" checked="checked" type="radio"><span class="icon icon-times"></span> 关闭
                                </label>
                            </div>
                        </div>
                    </div>
                </if>
                </td>
                <td class="vatop tips">开启后可使用微信账号登录商城系统</td>
                </tr>
                <tr>
                    <td class="required"><label class="validation" for="wx_appid">应用标识:</label></td>
                    <td class="vatop rowform">
                        <input id="qq_appid" name="wx_appid" value="{$config['wx_appid']}" class="input input_big" type="text">
                    </td>
                    <td class="vatop tips"><a style="color:#ffffff; font-weight:bold;" target="_blank" href="http://connect.weixin.com">立即在线申请</a></td>
                </tr>
                <tr>
                    <td class="required"><label class="validation" for="wx_appkey">应用密钥:</label></td>
                    <td class="vatop rowform">
                        <input id="qq_appkey" name="wx_appkey" value="{$config['wx_appkey']}" class="input input_big" type="text"></td>
                    <td class="vatop tips">&nbsp;</td>
                </tr>
                </tbody>
                <tfoot>
                    <tr class="tfoot">
                        <td colspan="3"><input type="submit" value="提交" class="button bg-main" /></td>
                    </tr>
                </tfoot>
            </table>
        </form>
    </div>
</div>
<script type="text/javascript">
    $('#myform').layer({});
</script>
